package com.smallcr.utils;

import org.apache.commons.lang.StringUtils;

import com.smallcr.exception.RRException;


public  class Assert
{

    public static void isBlank(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new RRException(message);
        }
    }
    
    public static void isBlank(String str, String message, Integer code) {
        if (StringUtils.isBlank(str)) {
            throw new RRException(message, code);
        }
    }

    public static void isNull(Object object, String message) 
    {
        if (object == null) {
            throw new RRException(message);
        }
    }
}
